<?php

class DepartmentsController extends Base {
  use CURD;

  public $tableName = 'departments';
  protected $deleted_at = true;
  protected $isTree = false;
  protected $likeField = 'title'; 
  protected $parentKey = 'pid';
  protected $relations = [
    'admin_id' => ['table'=>'admin_users','as'=>'admin','pri'=>'id','cols'=>['id','name'],'where'=>[],'type'=>'one'],
  ];
}
